package com.soo.hoo.admin.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.soo.hoo.core.model.BaseEntry;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * <p>
 * 收礼记录
 * </p>
 *
 * @author 杨燚
 * @since 2024-04-20
 */
@Getter
@Setter
@TableName("t_sys_book_receiving")
@Schema(name = "SysBookReceiving", description = "收礼记录")
public class SysBookReceiving extends BaseEntry {

    @Schema(description = "唯一标识")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "礼簿id，关联t_sys_book表id列")
    private Long bookId;

    @Schema(description = "宾客姓名")
    private String guestName;

    @Schema(description = "礼金金额")
    private Integer amount;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "是否已回礼")
    private Boolean reciprocated;

    @Schema(description = "是否删除，为空时未删除")
    @TableLogic
    private LocalDateTime deleted;
}
